package com.laker.admin.module.inv.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *
 * </p>
 *
 * @author laker
 * @since 2024-03-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class InvTradeout implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "inv_tradeout_id", type = IdType.AUTO)
    private Long invTradeoutId;

    /**
     * 库存ID
     */
    private Long invId;

    /**
     * 商品ID
     */
    private Long invTradeoutProductId;

    /**
     * 商品规格ID
     */
    private Long invTradeoutCommSpaceId;

    /**
     * 商品数量
     */
    private Long invTradeoutProdSum;

    /**
     * 商品数量(修改时使用)
     */
    private Long invTradeoutModifySum;

    /**
     * 商品名称
     */
    private String commName;

    /**
     * 商品类别名称
     */
    private String commTypeName;

    /**
     * 接收人
     */
    private String invTradeoutReceive;

    /**
     * 出库时间
     */
    private LocalDateTime invTradeioutTime;

    /**
     * 创建时间
     */
    private LocalDateTime createdTime;

    /**
     * 出库备注
     */
    private String invTradeoutRemark;

    @TableField(exist = false)
    private String commSpecsName;

    @TableField(exist = false)
    private Long invSum;
}
